All Packages Class Hierarchy This Package Previous Next Index
Class java.naming.RefAddr
java.lang.Object
|
+----java.naming.RefAddr
- public abstract class RefAddr
- extends Object
- implements Serializable
The RefAddr class represents a communications end-point.
It consists of a type that describes the communication mechanism
and an address contents determined by an RefAddr subclass.
For example, an address type could be "ONC RPC Address", and
its contents could be the machine name, program number, and version number.
- See Also:
- Reference, LinkRef, StringRefAddr, BinaryRefAddr
-
addrType
-
-
RefAddr(String)
- Constructs a new instance of RefAddr using its address type.
-
equals(Object)
-
-
getAddressContents()
- Retrieves the contents of this address.
-
getType()
- Retrieves the address type of this address.
-
hashCode()
- Computes the hash code of this address using its address type and contents.
-
toString()
- Generates the string representation of this address.
addrType
protected String addrType
RefAddr
public RefAddr(String addrType)
- Constructs a new instance of RefAddr using its address type.
- Parameters:
- addrType - A string describing the type of the address.
getType
public String getType()
- Retrieves the address type of this address.
- Returns:
- The address type of this address.
getAddressContents
public abstract Object getAddressContents()
- Retrieves the contents of this address.
- Returns:
- The address contents.
equals
public boolean equals(Object obj)
- Overrides:
- equals in class Object
hashCode
public int hashCode()
- Computes the hash code of this address using its address type and contents.
- Returns:
- The hash code of this address as an int.
- Overrides:
- hashCode in class Object
toString
public String toString()
- Generates the string representation of this address.
The string consists of the address's type and contents with labels.
This representation is intended for display only and not to be parsed.
- Returns:
- The string representation of this address.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index